package com.atguigu.dao.impl;

import com.atguigu.Bean.C_orderItem;
import com.atguigu.dao.OrderItemDao;

public class OrderItemDaoImpl extends BaseDao implements OrderItemDao {
    @Override
    public int saveOrderItem(C_orderItem c_orderItem) {
        String sql="insert into c_order_item values(?,?,?,?,?,?)";
        return updatedate(sql,c_orderItem.getId(),c_orderItem.getName(),c_orderItem.getCount(),c_orderItem.getPrice(),c_orderItem.getTotalPrice(),c_orderItem.getOrderId());
    }
}
